package com.oasys.service;

import com.github.pagehelper.PageInfo;
import com.oasys.entity.NoticePageVo;
import com.oasys.entity.NoticePo;
import com.oasys.utils.ResponseResult;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/5/13
 **/
public interface NoticeService {

    /**
     * 发布公告
     * @param po p
     * @return bool
     */
    ResponseResult<Boolean> publishNotice(NoticePo po);

    /**
     * 分页获取公告
     * @param vo
     * @return
     */
    ResponseResult<Map<String,Object>> getNoticeByPage(NoticePageVo vo);

    /**
     * 隐藏
     * @param noteId
     * @return
     */
    Boolean hideNotice(Long noteId);

    /**
     * 取消隐藏
     * @param noteId
     * @return
     */
    Boolean cancelHideNotice(Long noteId);

    /**
     * 删除
     * @param noteId
     * @return
     */
    Boolean deleteNote(Long noteId);
}
